package org.mozhu.zufang.system.auth.service;

import org.mozhu.mboot.core.data.BaseService;
import org.mozhu.zufang.system.auth.entity.GroupAuth;
import org.mozhu.zufang.system.auth.repository.GroupAuthRepository;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Transactional
@Service("groupAuthService")
public class GroupAuthServiceImpl extends BaseService<GroupAuth, Long> implements GroupAuthService {

    protected GroupAuthRepository getBaseRepository() {
        return (GroupAuthRepository) baseRepository;
    }

    @Override
    public GroupAuth findByGroupId(Long groupId) {
        return getBaseRepository().findByGroupId(groupId);
    }

}
